<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>initdevice</title>
  <link rel="stylesheet" type="text/css" href="static/css/index.css" />
  <script src="build/js/index.min.js"></script>
</head>
<body>
  <h1 style="-webkit-app-region: drag; text-align: center; font-weight: bold; margin-top: 80px">设备注册助手</h1>
  <div style="text-align: center;">
    <div>
      设备名称：<input type="text" id="name" placeholder="输入将要注册的设备名称" />
    </div>
    <button id="submit" onclick="submit();">注册</button>
    <button id="quit" onclick="quit()">退出</button>
  </div>
  <footer>&copy;2019远图 </footer>
  <script>
    function submit () {
      let name = document.getElementById('name');
      let deviceNick = name.value;
      register(deviceNick)
    }
  </script>
</body>
</html>